/*
 * Copyright 2011 Clean GWT
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
package com.cleangwt.validation.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.i18n.client.Messages;

/**
 * The message interface for built-in validations.
 * 
 * @author Jess
 * @version 1.0
 * @since 1.0
 */
public interface ValidationMessages extends Messages {
  static ValidationMessages Impl = GWT.create(ValidationMessages.class);

  String max(Comparable<?> limit);

  String min(Comparable<?> limit);

  String notNull();

  String pattern(String regexp);

  String size(long min, long max);

  String future();

  String past();

  String remote();

  String eq(String field1, String field2);

  String ge(String name1, String name2);

  String gt(String name1, String name2);

  String le(String name1, String name2);

  String lt(String name1, String name2);
}
